<?php

/**
 * Application filter form base class.
 *
 * @package    acca
 * @subpackage filter
 * @author     Rommel M. Zamora / Sonny L. Cabali
 * @version    SVN: $Id: sfDoctrineFormFilterGeneratedTemplate.php 29570 2010-05-21 14:49:47Z Kris.Wallsmith $
 */
abstract class BaseApplicationFormFilter extends BaseFormFilterDoctrine
{
  public function setup()
  {
    $this->setWidgets(array(
      'ref_number'                                             => new sfWidgetFormFilterInput(array('with_empty' => false)),
      'application_type'                                       => new sfWidgetFormChoice(array('choices' => array('' => '', 'Corporate Individual' => 'Corporate Individual', 'Corporate Managed' => 'Corporate Managed'))),
      'existing_subscriber'                                    => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'globe_mobile_number'                                    => new sfWidgetFormFilterInput(),
      'globe_telephone_number'                                 => new sfWidgetFormFilterInput(),
      'others_subscriber'                                      => new sfWidgetFormFilterInput(),
      'title'                                                  => new sfWidgetFormFilterInput(),
      'sex'                                                    => new sfWidgetFormChoice(array('choices' => array('' => '', 'Male' => 'Male', 'Female' => 'Female'))),
      'last_name'                                              => new sfWidgetFormFilterInput(),
      'first_name'                                             => new sfWidgetFormFilterInput(),
      'middle_name'                                            => new sfWidgetFormFilterInput(),
      'birthday'                                               => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate())),
      'mothers_maiden_name'                                    => new sfWidgetFormFilterInput(),
      'home_ownership'                                         => new sfWidgetFormChoice(array('choices' => array('' => '', 'Owned' => 'Owned', 'Living with Relatives' => 'Living with Relatives', 'Company-Owned' => 'Company-Owned', 'Rented' => 'Rented', 'Mortgage' => 'Mortgage'))),
      'rented_per_month'                                       => new sfWidgetFormFilterInput(),
      'mortgage_per_month'                                     => new sfWidgetFormFilterInput(),
      'years_of_stay'                                          => new sfWidgetFormFilterInput(),
      'home_address'                                           => new sfWidgetFormFilterInput(),
      'home_brgy_municipality_town'                            => new sfWidgetFormFilterInput(),
      'home_city_province'                                     => new sfWidgetFormFilterInput(),
      'home_postal_code_zip_code'                              => new sfWidgetFormFilterInput(),
      'home_telephone_number'                                  => new sfWidgetFormFilterInput(),
      'email_address'                                          => new sfWidgetFormFilterInput(),
      'tin'                                                    => new sfWidgetFormFilterInput(),
      'gsis_sss'                                               => new sfWidgetFormFilterInput(),
      'citizenship'                                            => new sfWidgetFormFilterInput(),
      'foreigner_country'                                      => new sfWidgetFormFilterInput(),
      'passport_number'                                        => new sfWidgetFormFilterInput(),
      'acr_number'                                             => new sfWidgetFormFilterInput(),
      'passport_expiry_date'                                   => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate())),
      'civil_status'                                           => new sfWidgetFormChoice(array('choices' => array('' => '', 'Single' => 'Single', 'Married' => 'Married', 'Widow/Widower' => 'Widow/Widower', 'Legally Separated' => 'Legally Separated'))),
      'spouse_name'                                            => new sfWidgetFormFilterInput(),
      'spouse_birthday'                                        => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate())),
      'spouse_profession_company_name'                         => new sfWidgetFormFilterInput(),
      'spouse_position'                                        => new sfWidgetFormFilterInput(),
      'spouse_telephone_number'                                => new sfWidgetFormFilterInput(),
      'msa_number'                                             => new sfWidgetFormFilterInput(),
      'employer_business_name'                                 => new sfWidgetFormFilterInput(),
      'industry'                                               => new sfWidgetFormFilterInput(),
      'business_address'                                       => new sfWidgetFormFilterInput(),
      'business_brgy_municipality_town'                        => new sfWidgetFormFilterInput(),
      'business_city_province'                                 => new sfWidgetFormFilterInput(),
      'business_postal_code_zip_code'                          => new sfWidgetFormFilterInput(),
      'office_telephone_number'                                => new sfWidgetFormFilterInput(),
      'years_in_company'                                       => new sfWidgetFormFilterInput(),
      'current_position_held'                                  => new sfWidgetFormFilterInput(),
      'personal_monthly_income'                                => new sfWidgetFormChoice(array('choices' => array('' => '', 'Below P10,000' => 'Below P10,000', 'P10,000 - P24,999' => 'P10,000 - P24,999', 'P25,000 - P34,999' => 'P25,000 - P34,999', 'Above P35,000' => 'Above P35,000'))),
      'authorized_contact_person'                              => new sfWidgetFormFilterInput(),
      'authorized_contact_relation'                            => new sfWidgetFormFilterInput(),
      'authorized_contact_number'                              => new sfWidgetFormFilterInput(),
      'bills_sent_to'                                          => new sfWidgetFormChoice(array('choices' => array('' => '', 'Home Address' => 'Home Address', 'Business Address' => 'Business Address'))),
      'plans_gplan'                                            => new sfWidgetFormFilterInput(),
      'plans_gflex'                                            => new sfWidgetFormFilterInput(),
      'plans_others'                                           => new sfWidgetFormFilterInput(),
      'promo'                                                  => new sfWidgetFormFilterInput(),
      'value_added_service_special_features'                   => new sfWidgetFormFilterInput(),
      'handset_brand_model'                                    => new sfWidgetFormFilterInput(),
      'handset_provided_by'                                    => new sfWidgetFormChoice(array('choices' => array('' => '', 'Globe Telecom' => 'Globe Telecom', 'Subscriber' => 'Subscriber'))),
      'handset_imei_number'                                    => new sfWidgetFormFilterInput(),
      'handset_hbp'                                            => new sfWidgetFormFilterInput(),
      'handset_lockup_period'                                  => new sfWidgetFormFilterInput(),
      'sim_card_number'                                        => new sfWidgetFormFilterInput(),
      'number_of_employees'                                    => new sfWidgetFormChoice(array('choices' => array('' => '', '1-50' => '1-50', '51-100' => '51-100', '101-200' => '101-200', '201-500' => '201-500', '501-1,000' => '501-1,000', '1,001 & Up' => '1,001 & Up'))),
      'nature_of_business'                                     => new sfWidgetFormChoice(array('choices' => array('' => '', 'Government' => 'Government', 'BPO/Call Center' => 'BPO/Call Center', 'Holdings Company' => 'Holdings Company', 'Power & Utilities' => 'Power & Utilities', 'Petroleum' => 'Petroleum', 'Insurance' => 'Insurance', 'Banking' => 'Banking', 'Logistics' => 'Logistics', 'Transport & Freight' => 'Transport & Freight', 'Retail' => 'Retail', 'Hotels & Resorts' => 'Hotels & Resorts', 'Manufacturing' => 'Manufacturing', 'Semicon & Electronics' => 'Semicon & Electronics', 'Pharmaceuticals' => 'Pharmaceuticals', 'Global Service Provider' => 'Global Service Provider', 'Local Telco/ISP' => 'Local Telco/ISP', 'Media' => 'Media'))),
      'latest_ranking_of_company'                              => new sfWidgetFormChoice(array('choices' => array('' => '', 'Top 50' => 'Top 50', 'Top 100' => 'Top 100', 'Top 250' => 'Top 250', 'Top 500' => 'Top 500', 'Top 1,000' => 'Top 1,000', 'Beyond 1,000' => 'Beyond 1,000'))),
      'sector'                                                 => new sfWidgetFormFilterInput(),
      'number_of_lines_applied_for'                            => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory1'                => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory1_position'       => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory1_contact_number' => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory1_email_address'  => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory2'                => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory2_position'       => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory2_contact_number' => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory2_email_address'  => new sfWidgetFormFilterInput(),
      'after_sales_signatory_ies1'                             => new sfWidgetFormFilterInput(),
      'after_sales_signatory_ies1_position'                    => new sfWidgetFormFilterInput(),
      'after_sales_signatory_ies1_contact_number'              => new sfWidgetFormFilterInput(),
      'after_sales_signatory_ies1_email_address'               => new sfWidgetFormFilterInput(),
      'after_sales_signatory_ies2'                             => new sfWidgetFormFilterInput(),
      'after_sales_signatory_ies2_position'                    => new sfWidgetFormFilterInput(),
      'after_sales_signatory_ies2_contact_number'              => new sfWidgetFormFilterInput(),
      'after_sales_signatory_ies2_email_address'               => new sfWidgetFormFilterInput(),
      'vat'                                                    => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'vat_bir_certificate_account_number'                     => new sfWidgetFormFilterInput(),
      'oct'                                                    => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'oct_bir_certificate_account_number'                     => new sfWidgetFormFilterInput(),
      'corporate_managed_bills_sent_to'                        => new sfWidgetFormChoice(array('choices' => array('' => '', 'One recipient' => 'One recipient', 'Assignees' => 'Assignees'))),
      'bill_recipient_company_name'                            => new sfWidgetFormFilterInput(),
      'bill_recipient_attention'                               => new sfWidgetFormFilterInput(),
      'bill_recipient_unit_number_floor'                       => new sfWidgetFormFilterInput(),
      'bill_recipient_department'                              => new sfWidgetFormFilterInput(),
      'bill_recipient_building_street'                         => new sfWidgetFormFilterInput(),
      'receive_bill_summary'                                   => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'bill_soft_copy_to_email_address'                        => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'bill_hard_copy_to_businesS_address'                     => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'bill_summary_contact_name'                              => new sfWidgetFormFilterInput(),
      'bill_summary_contact_number'                            => new sfWidgetFormFilterInput(),
      'bill_summary_type'                                      => new sfWidgetFormChoice(array('choices' => array('' => '', 'One summary for company' => 'One summary for company', 'Breakdown per department' => 'Breakdown per department'))),
      'breakdown_department1'                                  => new sfWidgetFormFilterInput(),
      'breakdown_department1_contact_name_number'              => new sfWidgetFormFilterInput(),
      'breakdown_department1_bill_cut_off'                     => new sfWidgetFormFilterInput(),
      'breakdown_department1_corporate_id'                     => new sfWidgetFormFilterInput(),
      'breakdown_department2'                                  => new sfWidgetFormFilterInput(),
      'breakdown_department2_contact_name_number'              => new sfWidgetFormFilterInput(),
      'breakdown_department2_bill_cut_off'                     => new sfWidgetFormFilterInput(),
      'breakdown_department2_corporate_id'                     => new sfWidgetFormFilterInput(),
      'breakdown_department3'                                  => new sfWidgetFormFilterInput(),
      'breakdown_department3_contact_name_number'              => new sfWidgetFormFilterInput(),
      'breakdown_department3_bill_cut_off'                     => new sfWidgetFormFilterInput(),
      'breakdown_department3_corporate_id'                     => new sfWidgetFormFilterInput(),
      'breakdown_department4'                                  => new sfWidgetFormFilterInput(),
      'breakdown_department4_contact_name_number'              => new sfWidgetFormFilterInput(),
      'breakdown_department4_bill_cut_off'                     => new sfWidgetFormFilterInput(),
      'breakdown_department4_corporate_id'                     => new sfWidgetFormFilterInput(),
      'breakdown_department5'                                  => new sfWidgetFormFilterInput(),
      'breakdown_department5_contact_name_number'              => new sfWidgetFormFilterInput(),
      'breakdown_department5_bill_cut_off'                     => new sfWidgetFormFilterInput(),
      'breakdown_department5_corporate_id'                     => new sfWidgetFormFilterInput(),
      'corporate_code'                                         => new sfWidgetFormFilterInput(),
      'certification_hr_authorized_signatory_name'             => new sfWidgetFormFilterInput(),
      'certification_hr_authorized_signatory_date'             => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate())),
      'certification_hr_authorized_signatory_company'          => new sfWidgetFormFilterInput(),
      'certification_company_representative_name'              => new sfWidgetFormFilterInput(),
      'certification_company_representative_date'              => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate())),
      'certification_company_representative_company'           => new sfWidgetFormFilterInput(),
      'declaration_authorized_signatory_name1'                 => new sfWidgetFormFilterInput(),
      'declaration_authorized_signatory_date1'                 => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate())),
      'declaration_authorized_signatory_name2'                 => new sfWidgetFormFilterInput(),
      'declaration_authorized_signatory_date2'                 => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate())),
      'bulk_service'                                           => new sfWidgetFormFilterInput(),
      'max_authorized_recipients'                              => new sfWidgetFormFilterInput(),
      'distribution_type'                                      => new sfWidgetFormChoice(array('choices' => array('' => '', 'Equal' => 'Equal', 'Prioritization' => 'Prioritization'))),
      'nominated_postpaid_charging_account'                    => new sfWidgetFormFilterInput(),
      'corporate_id'                                           => new sfWidgetFormFilterInput(),
      'bulk_service_authorized_representative_name'            => new sfWidgetFormFilterInput(),
      'bulk_service_authorized_representative_date'            => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate())),
      'bulk_service_authorized_representative_company'         => new sfWidgetFormFilterInput(),
      'created_at'                                             => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate(), 'with_empty' => false)),
      'updated_at'                                             => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate(), 'with_empty' => false)),
    ));

    $this->setValidators(array(
      'ref_number'                                             => new sfValidatorPass(array('required' => false)),
      'application_type'                                       => new sfValidatorChoice(array('required' => false, 'choices' => array('Corporate Individual' => 'Corporate Individual', 'Corporate Managed' => 'Corporate Managed'))),
      'existing_subscriber'                                    => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'globe_mobile_number'                                    => new sfValidatorPass(array('required' => false)),
      'globe_telephone_number'                                 => new sfValidatorPass(array('required' => false)),
      'others_subscriber'                                      => new sfValidatorPass(array('required' => false)),
      'title'                                                  => new sfValidatorPass(array('required' => false)),
      'sex'                                                    => new sfValidatorChoice(array('required' => false, 'choices' => array('Male' => 'Male', 'Female' => 'Female'))),
      'last_name'                                              => new sfValidatorPass(array('required' => false)),
      'first_name'                                             => new sfValidatorPass(array('required' => false)),
      'middle_name'                                            => new sfValidatorPass(array('required' => false)),
      'birthday'                                               => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDate(array('required' => false)), 'to_date' => new sfValidatorDateTime(array('required' => false)))),
      'mothers_maiden_name'                                    => new sfValidatorPass(array('required' => false)),
      'home_ownership'                                         => new sfValidatorChoice(array('required' => false, 'choices' => array('Owned' => 'Owned', 'Living with Relatives' => 'Living with Relatives', 'Company-Owned' => 'Company-Owned', 'Rented' => 'Rented', 'Mortgage' => 'Mortgage'))),
      'rented_per_month'                                       => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'mortgage_per_month'                                     => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'years_of_stay'                                          => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'home_address'                                           => new sfValidatorPass(array('required' => false)),
      'home_brgy_municipality_town'                            => new sfValidatorPass(array('required' => false)),
      'home_city_province'                                     => new sfValidatorPass(array('required' => false)),
      'home_postal_code_zip_code'                              => new sfValidatorPass(array('required' => false)),
      'home_telephone_number'                                  => new sfValidatorPass(array('required' => false)),
      'email_address'                                          => new sfValidatorPass(array('required' => false)),
      'tin'                                                    => new sfValidatorPass(array('required' => false)),
      'gsis_sss'                                               => new sfValidatorPass(array('required' => false)),
      'citizenship'                                            => new sfValidatorPass(array('required' => false)),
      'foreigner_country'                                      => new sfValidatorPass(array('required' => false)),
      'passport_number'                                        => new sfValidatorPass(array('required' => false)),
      'acr_number'                                             => new sfValidatorPass(array('required' => false)),
      'passport_expiry_date'                                   => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDate(array('required' => false)), 'to_date' => new sfValidatorDateTime(array('required' => false)))),
      'civil_status'                                           => new sfValidatorChoice(array('required' => false, 'choices' => array('Single' => 'Single', 'Married' => 'Married', 'Widow/Widower' => 'Widow/Widower', 'Legally Separated' => 'Legally Separated'))),
      'spouse_name'                                            => new sfValidatorPass(array('required' => false)),
      'spouse_birthday'                                        => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDate(array('required' => false)), 'to_date' => new sfValidatorDateTime(array('required' => false)))),
      'spouse_profession_company_name'                         => new sfValidatorPass(array('required' => false)),
      'spouse_position'                                        => new sfValidatorPass(array('required' => false)),
      'spouse_telephone_number'                                => new sfValidatorPass(array('required' => false)),
      'msa_number'                                             => new sfValidatorPass(array('required' => false)),
      'employer_business_name'                                 => new sfValidatorPass(array('required' => false)),
      'industry'                                               => new sfValidatorPass(array('required' => false)),
      'business_address'                                       => new sfValidatorPass(array('required' => false)),
      'business_brgy_municipality_town'                        => new sfValidatorPass(array('required' => false)),
      'business_city_province'                                 => new sfValidatorPass(array('required' => false)),
      'business_postal_code_zip_code'                          => new sfValidatorPass(array('required' => false)),
      'office_telephone_number'                                => new sfValidatorPass(array('required' => false)),
      'years_in_company'                                       => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'current_position_held'                                  => new sfValidatorPass(array('required' => false)),
      'personal_monthly_income'                                => new sfValidatorChoice(array('required' => false, 'choices' => array('Below P10,000' => 'Below P10,000', 'P10,000 - P24,999' => 'P10,000 - P24,999', 'P25,000 - P34,999' => 'P25,000 - P34,999', 'Above P35,000' => 'Above P35,000'))),
      'authorized_contact_person'                              => new sfValidatorPass(array('required' => false)),
      'authorized_contact_relation'                            => new sfValidatorPass(array('required' => false)),
      'authorized_contact_number'                              => new sfValidatorPass(array('required' => false)),
      'bills_sent_to'                                          => new sfValidatorChoice(array('required' => false, 'choices' => array('Home Address' => 'Home Address', 'Business Address' => 'Business Address'))),
      'plans_gplan'                                            => new sfValidatorPass(array('required' => false)),
      'plans_gflex'                                            => new sfValidatorPass(array('required' => false)),
      'plans_others'                                           => new sfValidatorPass(array('required' => false)),
      'promo'                                                  => new sfValidatorPass(array('required' => false)),
      'value_added_service_special_features'                   => new sfValidatorPass(array('required' => false)),
      'handset_brand_model'                                    => new sfValidatorPass(array('required' => false)),
      'handset_provided_by'                                    => new sfValidatorChoice(array('required' => false, 'choices' => array('Globe Telecom' => 'Globe Telecom', 'Subscriber' => 'Subscriber'))),
      'handset_imei_number'                                    => new sfValidatorPass(array('required' => false)),
      'handset_hbp'                                            => new sfValidatorPass(array('required' => false)),
      'handset_lockup_period'                                  => new sfValidatorPass(array('required' => false)),
      'sim_card_number'                                        => new sfValidatorPass(array('required' => false)),
      'number_of_employees'                                    => new sfValidatorChoice(array('required' => false, 'choices' => array('1-50' => '1-50', '51-100' => '51-100', '101-200' => '101-200', '201-500' => '201-500', '501-1,000' => '501-1,000', '1,001 & Up' => '1,001 & Up'))),
      'nature_of_business'                                     => new sfValidatorChoice(array('required' => false, 'choices' => array('Government' => 'Government', 'BPO/Call Center' => 'BPO/Call Center', 'Holdings Company' => 'Holdings Company', 'Power & Utilities' => 'Power & Utilities', 'Petroleum' => 'Petroleum', 'Insurance' => 'Insurance', 'Banking' => 'Banking', 'Logistics' => 'Logistics', 'Transport & Freight' => 'Transport & Freight', 'Retail' => 'Retail', 'Hotels & Resorts' => 'Hotels & Resorts', 'Manufacturing' => 'Manufacturing', 'Semicon & Electronics' => 'Semicon & Electronics', 'Pharmaceuticals' => 'Pharmaceuticals', 'Global Service Provider' => 'Global Service Provider', 'Local Telco/ISP' => 'Local Telco/ISP', 'Media' => 'Media'))),
      'latest_ranking_of_company'                              => new sfValidatorChoice(array('required' => false, 'choices' => array('Top 50' => 'Top 50', 'Top 100' => 'Top 100', 'Top 250' => 'Top 250', 'Top 500' => 'Top 500', 'Top 1,000' => 'Top 1,000', 'Beyond 1,000' => 'Beyond 1,000'))),
      'sector'                                                 => new sfValidatorPass(array('required' => false)),
      'number_of_lines_applied_for'                            => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'authorized_corporate_officer_signatory1'                => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory1_position'       => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory1_contact_number' => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory1_email_address'  => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory2'                => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory2_position'       => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory2_contact_number' => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory2_email_address'  => new sfValidatorPass(array('required' => false)),
      'after_sales_signatory_ies1'                             => new sfValidatorPass(array('required' => false)),
      'after_sales_signatory_ies1_position'                    => new sfValidatorPass(array('required' => false)),
      'after_sales_signatory_ies1_contact_number'              => new sfValidatorPass(array('required' => false)),
      'after_sales_signatory_ies1_email_address'               => new sfValidatorPass(array('required' => false)),
      'after_sales_signatory_ies2'                             => new sfValidatorPass(array('required' => false)),
      'after_sales_signatory_ies2_position'                    => new sfValidatorPass(array('required' => false)),
      'after_sales_signatory_ies2_contact_number'              => new sfValidatorPass(array('required' => false)),
      'after_sales_signatory_ies2_email_address'               => new sfValidatorPass(array('required' => false)),
      'vat'                                                    => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'vat_bir_certificate_account_number'                     => new sfValidatorPass(array('required' => false)),
      'oct'                                                    => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'oct_bir_certificate_account_number'                     => new sfValidatorPass(array('required' => false)),
      'corporate_managed_bills_sent_to'                        => new sfValidatorChoice(array('required' => false, 'choices' => array('One recipient' => 'One recipient', 'Assignees' => 'Assignees'))),
      'bill_recipient_company_name'                            => new sfValidatorPass(array('required' => false)),
      'bill_recipient_attention'                               => new sfValidatorPass(array('required' => false)),
      'bill_recipient_unit_number_floor'                       => new sfValidatorPass(array('required' => false)),
      'bill_recipient_department'                              => new sfValidatorPass(array('required' => false)),
      'bill_recipient_building_street'                         => new sfValidatorPass(array('required' => false)),
      'receive_bill_summary'                                   => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'bill_soft_copy_to_email_address'                        => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'bill_hard_copy_to_businesS_address'                     => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'bill_summary_contact_name'                              => new sfValidatorPass(array('required' => false)),
      'bill_summary_contact_number'                            => new sfValidatorPass(array('required' => false)),
      'bill_summary_type'                                      => new sfValidatorChoice(array('required' => false, 'choices' => array('One summary for company' => 'One summary for company', 'Breakdown per department' => 'Breakdown per department'))),
      'breakdown_department1'                                  => new sfValidatorPass(array('required' => false)),
      'breakdown_department1_contact_name_number'              => new sfValidatorPass(array('required' => false)),
      'breakdown_department1_bill_cut_off'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department1_corporate_id'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department2'                                  => new sfValidatorPass(array('required' => false)),
      'breakdown_department2_contact_name_number'              => new sfValidatorPass(array('required' => false)),
      'breakdown_department2_bill_cut_off'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department2_corporate_id'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department3'                                  => new sfValidatorPass(array('required' => false)),
      'breakdown_department3_contact_name_number'              => new sfValidatorPass(array('required' => false)),
      'breakdown_department3_bill_cut_off'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department3_corporate_id'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department4'                                  => new sfValidatorPass(array('required' => false)),
      'breakdown_department4_contact_name_number'              => new sfValidatorPass(array('required' => false)),
      'breakdown_department4_bill_cut_off'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department4_corporate_id'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department5'                                  => new sfValidatorPass(array('required' => false)),
      'breakdown_department5_contact_name_number'              => new sfValidatorPass(array('required' => false)),
      'breakdown_department5_bill_cut_off'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department5_corporate_id'                     => new sfValidatorPass(array('required' => false)),
      'corporate_code'                                         => new sfValidatorPass(array('required' => false)),
      'certification_hr_authorized_signatory_name'             => new sfValidatorPass(array('required' => false)),
      'certification_hr_authorized_signatory_date'             => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDate(array('required' => false)), 'to_date' => new sfValidatorDateTime(array('required' => false)))),
      'certification_hr_authorized_signatory_company'          => new sfValidatorPass(array('required' => false)),
      'certification_company_representative_name'              => new sfValidatorPass(array('required' => false)),
      'certification_company_representative_date'              => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDate(array('required' => false)), 'to_date' => new sfValidatorDateTime(array('required' => false)))),
      'certification_company_representative_company'           => new sfValidatorPass(array('required' => false)),
      'declaration_authorized_signatory_name1'                 => new sfValidatorPass(array('required' => false)),
      'declaration_authorized_signatory_date1'                 => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDate(array('required' => false)), 'to_date' => new sfValidatorDateTime(array('required' => false)))),
      'declaration_authorized_signatory_name2'                 => new sfValidatorPass(array('required' => false)),
      'declaration_authorized_signatory_date2'                 => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDate(array('required' => false)), 'to_date' => new sfValidatorDateTime(array('required' => false)))),
      'bulk_service'                                           => new sfValidatorPass(array('required' => false)),
      'max_authorized_recipients'                              => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'distribution_type'                                      => new sfValidatorChoice(array('required' => false, 'choices' => array('Equal' => 'Equal', 'Prioritization' => 'Prioritization'))),
      'nominated_postpaid_charging_account'                    => new sfValidatorPass(array('required' => false)),
      'corporate_id'                                           => new sfValidatorPass(array('required' => false)),
      'bulk_service_authorized_representative_name'            => new sfValidatorPass(array('required' => false)),
      'bulk_service_authorized_representative_date'            => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDate(array('required' => false)), 'to_date' => new sfValidatorDateTime(array('required' => false)))),
      'bulk_service_authorized_representative_company'         => new sfValidatorPass(array('required' => false)),
      'created_at'                                             => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDateTime(array('required' => false, 'datetime_output' => 'Y-m-d 00:00:00')), 'to_date' => new sfValidatorDateTime(array('required' => false, 'datetime_output' => 'Y-m-d 23:59:59')))),
      'updated_at'                                             => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDateTime(array('required' => false, 'datetime_output' => 'Y-m-d 00:00:00')), 'to_date' => new sfValidatorDateTime(array('required' => false, 'datetime_output' => 'Y-m-d 23:59:59')))),
    ));

    $this->widgetSchema->setNameFormat('application_filters[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    $this->setupInheritance();

    parent::setup();
  }

  public function getModelName()
  {
    return 'Application';
  }

  public function getFields()
  {
    return array(
      'id'                                                     => 'Number',
      'ref_number'                                             => 'Text',
      'application_type'                                       => 'Enum',
      'existing_subscriber'                                    => 'Boolean',
      'globe_mobile_number'                                    => 'Text',
      'globe_telephone_number'                                 => 'Text',
      'others_subscriber'                                      => 'Text',
      'title'                                                  => 'Text',
      'sex'                                                    => 'Enum',
      'last_name'                                              => 'Text',
      'first_name'                                             => 'Text',
      'middle_name'                                            => 'Text',
      'birthday'                                               => 'Date',
      'mothers_maiden_name'                                    => 'Text',
      'home_ownership'                                         => 'Enum',
      'rented_per_month'                                       => 'Number',
      'mortgage_per_month'                                     => 'Number',
      'years_of_stay'                                          => 'Number',
      'home_address'                                           => 'Text',
      'home_brgy_municipality_town'                            => 'Text',
      'home_city_province'                                     => 'Text',
      'home_postal_code_zip_code'                              => 'Text',
      'home_telephone_number'                                  => 'Text',
      'email_address'                                          => 'Text',
      'tin'                                                    => 'Text',
      'gsis_sss'                                               => 'Text',
      'citizenship'                                            => 'Text',
      'foreigner_country'                                      => 'Text',
      'passport_number'                                        => 'Text',
      'acr_number'                                             => 'Text',
      'passport_expiry_date'                                   => 'Date',
      'civil_status'                                           => 'Enum',
      'spouse_name'                                            => 'Text',
      'spouse_birthday'                                        => 'Date',
      'spouse_profession_company_name'                         => 'Text',
      'spouse_position'                                        => 'Text',
      'spouse_telephone_number'                                => 'Text',
      'msa_number'                                             => 'Text',
      'employer_business_name'                                 => 'Text',
      'industry'                                               => 'Text',
      'business_address'                                       => 'Text',
      'business_brgy_municipality_town'                        => 'Text',
      'business_city_province'                                 => 'Text',
      'business_postal_code_zip_code'                          => 'Text',
      'office_telephone_number'                                => 'Text',
      'years_in_company'                                       => 'Number',
      'current_position_held'                                  => 'Text',
      'personal_monthly_income'                                => 'Enum',
      'authorized_contact_person'                              => 'Text',
      'authorized_contact_relation'                            => 'Text',
      'authorized_contact_number'                              => 'Text',
      'bills_sent_to'                                          => 'Enum',
      'plans_gplan'                                            => 'Text',
      'plans_gflex'                                            => 'Text',
      'plans_others'                                           => 'Text',
      'promo'                                                  => 'Text',
      'value_added_service_special_features'                   => 'Text',
      'handset_brand_model'                                    => 'Text',
      'handset_provided_by'                                    => 'Enum',
      'handset_imei_number'                                    => 'Text',
      'handset_hbp'                                            => 'Text',
      'handset_lockup_period'                                  => 'Text',
      'sim_card_number'                                        => 'Text',
      'number_of_employees'                                    => 'Enum',
      'nature_of_business'                                     => 'Enum',
      'latest_ranking_of_company'                              => 'Enum',
      'sector'                                                 => 'Text',
      'number_of_lines_applied_for'                            => 'Number',
      'authorized_corporate_officer_signatory1'                => 'Text',
      'authorized_corporate_officer_signatory1_position'       => 'Text',
      'authorized_corporate_officer_signatory1_contact_number' => 'Text',
      'authorized_corporate_officer_signatory1_email_address'  => 'Text',
      'authorized_corporate_officer_signatory2'                => 'Text',
      'authorized_corporate_officer_signatory2_position'       => 'Text',
      'authorized_corporate_officer_signatory2_contact_number' => 'Text',
      'authorized_corporate_officer_signatory2_email_address'  => 'Text',
      'after_sales_signatory_ies1'                             => 'Text',
      'after_sales_signatory_ies1_position'                    => 'Text',
      'after_sales_signatory_ies1_contact_number'              => 'Text',
      'after_sales_signatory_ies1_email_address'               => 'Text',
      'after_sales_signatory_ies2'                             => 'Text',
      'after_sales_signatory_ies2_position'                    => 'Text',
      'after_sales_signatory_ies2_contact_number'              => 'Text',
      'after_sales_signatory_ies2_email_address'               => 'Text',
      'vat'                                                    => 'Boolean',
      'vat_bir_certificate_account_number'                     => 'Text',
      'oct'                                                    => 'Boolean',
      'oct_bir_certificate_account_number'                     => 'Text',
      'corporate_managed_bills_sent_to'                        => 'Enum',
      'bill_recipient_company_name'                            => 'Text',
      'bill_recipient_attention'                               => 'Text',
      'bill_recipient_unit_number_floor'                       => 'Text',
      'bill_recipient_department'                              => 'Text',
      'bill_recipient_building_street'                         => 'Text',
      'receive_bill_summary'                                   => 'Boolean',
      'bill_soft_copy_to_email_address'                        => 'Boolean',
      'bill_hard_copy_to_businesS_address'                     => 'Boolean',
      'bill_summary_contact_name'                              => 'Text',
      'bill_summary_contact_number'                            => 'Text',
      'bill_summary_type'                                      => 'Enum',
      'breakdown_department1'                                  => 'Text',
      'breakdown_department1_contact_name_number'              => 'Text',
      'breakdown_department1_bill_cut_off'                     => 'Text',
      'breakdown_department1_corporate_id'                     => 'Text',
      'breakdown_department2'                                  => 'Text',
      'breakdown_department2_contact_name_number'              => 'Text',
      'breakdown_department2_bill_cut_off'                     => 'Text',
      'breakdown_department2_corporate_id'                     => 'Text',
      'breakdown_department3'                                  => 'Text',
      'breakdown_department3_contact_name_number'              => 'Text',
      'breakdown_department3_bill_cut_off'                     => 'Text',
      'breakdown_department3_corporate_id'                     => 'Text',
      'breakdown_department4'                                  => 'Text',
      'breakdown_department4_contact_name_number'              => 'Text',
      'breakdown_department4_bill_cut_off'                     => 'Text',
      'breakdown_department4_corporate_id'                     => 'Text',
      'breakdown_department5'                                  => 'Text',
      'breakdown_department5_contact_name_number'              => 'Text',
      'breakdown_department5_bill_cut_off'                     => 'Text',
      'breakdown_department5_corporate_id'                     => 'Text',
      'corporate_code'                                         => 'Text',
      'certification_hr_authorized_signatory_name'             => 'Text',
      'certification_hr_authorized_signatory_date'             => 'Date',
      'certification_hr_authorized_signatory_company'          => 'Text',
      'certification_company_representative_name'              => 'Text',
      'certification_company_representative_date'              => 'Date',
      'certification_company_representative_company'           => 'Text',
      'declaration_authorized_signatory_name1'                 => 'Text',
      'declaration_authorized_signatory_date1'                 => 'Date',
      'declaration_authorized_signatory_name2'                 => 'Text',
      'declaration_authorized_signatory_date2'                 => 'Date',
      'bulk_service'                                           => 'Text',
      'max_authorized_recipients'                              => 'Number',
      'distribution_type'                                      => 'Enum',
      'nominated_postpaid_charging_account'                    => 'Text',
      'corporate_id'                                           => 'Text',
      'bulk_service_authorized_representative_name'            => 'Text',
      'bulk_service_authorized_representative_date'            => 'Date',
      'bulk_service_authorized_representative_company'         => 'Text',
      'created_at'                                             => 'Date',
      'updated_at'                                             => 'Date',
    );
  }
}
